package com.zzxy.mybati34.dao;

import com.zzxy.mybati34.entity.User;
import org.apache.ibatis.session.SqlSession;

public class UserDaoImpl {
    private SqlSession sqlSession;

    public UserDaoImpl(SqlSession sqlSession) {
        this.sqlSession = sqlSession;
    }

    public com.zzxy.mybati34.entity.User findUserById(int id){

       User user=sqlSession.selectOne("findUserById",id);
       return user;
    }
}
